//
//  PictureTableViewCell.m
//  Project_A Gary
//
//  Created by leilei on 16/3/30.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "PictureTableViewCell.h"

@implementation PictureTableViewCell
-(void)dealloc
{
    [_nameLab release];
    [_imgView release];
    [_countLab release];
    [super dealloc];
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _imgView = [[UIImageView alloc] init];
        
        [self.contentView addSubview:self.imgView];
        [_imgView release];
        
        self.nameLab = [[UILabel alloc] init];
        self.nameLab.backgroundColor = [UIColor clearColor];
        self.nameLab.textColor = [UIColor whiteColor];
        self.nameLab.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.nameLab];
        [_nameLab release];
        
        self.countLab = [[UILabel alloc] init];
        self.countLab.backgroundColor = [UIColor clearColor];
        self.countLab.textColor = [UIColor whiteColor];
        self.countLab.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.countLab];
        [_countLab release];

    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imgView.frame = CGRectMake(10, 10, BOUNDS_WIDTH - 20, 180);
    self.nameLab.frame = CGRectMake(10, 160, BOUNDS_WIDTH - 100, 30);
    self.countLab.frame = CGRectMake(BOUNDS_WIDTH - 10 - 50, 160, 50, 30);
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
